'use client'

import { useStore } from "@/store/createStore"

export default function Index({ children, hasToken, isMobile }) {
  useStore.setState({
    isLogin: hasToken,
    isMobile
  })
  return children
}
